/* 登录页面样式 */
.loginContainer {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  position: relative;
  padding: 24px;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 20%, rgba(56,189,248,0.22) 0%, rgba(56,189,248,0.08) 28%, transparent 55%),
    radial-gradient(circle at 85% 25%, rgba(168,85,247,0.18) 0%, rgba(168,85,247,0.05) 34%, transparent 60%),
    radial-gradient(circle at 15% 80%, rgba(45,212,191,0.14) 0%, rgba(45,212,191,0.04) 32%, transparent 58%),
    linear-gradient(135deg, #05070f 0%, #0b1226 45%, #11183a 70%, #1f1446 100%);
}

.loginGrid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(0deg, rgba(79, 70, 229, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79, 70, 229, 0.08) 1px, transparent 1px);
  background-size: 140px 140px;
  filter: blur(0.2px);
  z-index: 0;
  animation: gridShift 26s linear infinite;
}

.loginAurora {
  position: absolute;
  inset: -20%;
  background: conic-gradient(from 90deg at 50% 50%, rgba(56,189,248,0.12), rgba(167,139,250,0.15), rgba(14,116,144,0.08), rgba(56,189,248,0.12));
  filter: blur(95px);
  opacity: 0.85;
  animation: auroraDrift 18s ease-in-out infinite alternate;
  z-index: 0;
}

.loginBox {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 520px;
  padding: 44px 40px 38px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(10,12,24,0.88), rgba(15,23,42,0.9));
  backdrop-filter: blur(28px);
  box-shadow: 0 24px 60px rgba(15,23,42,0.55), inset 0 1px 0 rgba(226,232,240,0.06),
    0 0 0 1px rgba(148,163,184,0.18);
  transition: transform .3s ease, box-shadow .3s ease;
  overflow: hidden;
}

.loginBox:hover {
  transform: translateY(-4px);
  box-shadow: 0 32px 80px rgba(30,41,59,0.6), inset 0 1px 0 rgba(226,232,240,0.12);
}

.hologram {
  position: absolute;
  inset: -40% -30% auto;
  height: 220px;
  background: radial-gradient(circle, rgba(59,130,246,0.18) 0%, transparent 55%);
  filter: blur(12px);
  opacity: 0.7;
}

.holoPulse {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(56,189,248,0.28);
  border-radius: 50%;
  animation: pulseRing 8s ease-in-out infinite;
}

.holoPulse:nth-child(2) {
  animation-delay: 4s;
}

.idBadge {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 20px;
  margin-bottom: 26px;
  background: linear-gradient(135deg, rgba(30,41,59,0.75), rgba(15,23,42,0.65));
  border: 1px solid rgba(94,234,212,0.12);
  border-radius: 16px;
  box-shadow: inset 0 0 22px rgba(56,189,248,0.05);
}

.badgeAvatar {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: radial-gradient(circle at top, rgba(125,211,252,0.35), rgba(14,165,233,0.25) 45%, rgba(12,74,110,0.18) 70%);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #e0f2fe;
  overflow: hidden;
  box-shadow: inset 0 0 16px rgba(56,189,248,0.25), 0 0 24px rgba(59,130,246,0.25);
}

.badgeGlare {
  position: absolute;
  width: 120%;
  height: 120%;
  background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,0.28) 45%, transparent 78%);
  transform: rotate(18deg);
  animation: glareSweep 6s linear infinite;
}

.badgeIcon {
  width: 22px;
  height: 22px;
  position: relative;
  z-index: 1;
}

.badgeMeta {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.badgeLabel {
  font-size: 13px;
  letter-spacing: 0.18em;
  color: rgba(148, 163, 184, 0.85);
}

.badgeDesc {
  font-size: 15px;
  font-weight: 600;
  color: #e2e8f0;
}

.badgeStatus {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(45,212,191,0.1);
  color: #5eead4;
  letter-spacing: 0.24em;
}

.statusPulse {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #5eead4;
  box-shadow: 0 0 18px #5eead4;
  animation: statusPulse 1.8s ease-in-out infinite;
}

.sectionDivider {
  width: 100%;
  height: 1px;
  margin-bottom: 28px;
  background: linear-gradient(90deg, transparent, rgba(56,189,248,0.35), transparent);
  opacity: 0.6;
}

.titleCluster {
  text-align: center;
  margin-bottom: 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.loginTitle {
  margin: 0;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #e2e8f0;
  text-shadow: 0 0 30px rgba(56,189,248,0.35);
}

.loginSubtitle {
  text-align: center;
  color: #94a3b8;
  font-size: 13px;
  letter-spacing: 0.08em;
}

.errorMessage {
  background: rgba(254, 202, 202, 0.08);
  color: #fca5a5;
  padding: 12px;
  border-radius: 10px;
  margin-bottom: 20px;
  font-size: 14px;
  border-left: 4px solid rgba(248,113,113,0.35);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}

.successMessage {
  background: rgba(16,185,129,0.08);
  color: #34d399;
  padding: 12px;
  border-radius: 10px;
  margin-bottom: 20px;
  font-size: 14px;
  border-left: 4px solid rgba(45,212,191,0.35);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}

.toggleButton {
  margin: 18px auto 12px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(59,130,246,0.12);
  border: 1px solid rgba(96,165,250,0.25);
  color: #93c5fd;
  font-size: 13px;
  cursor: pointer;
  padding: 10px 18px;
  border-radius: 999px;
  transition: all 0.3s ease;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.toggleButton:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(59,130,246,0.25);
  border-color: rgba(147,197,253,0.45);
}

.toggleButton:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.loginForm {
  display: flex;
  flex-direction: column;
  position: relative;
}

.formGroup {
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.formLabel {
  display: block;
  color: #cbd5f5;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.formInput {
  width: 100%;
  padding: 14px 16px;
  border: 1.6px solid rgba(136,168,255,0.28);
  border-radius: 14px;
  font-size: 16px;
  transition: all 0.3s ease;
  box-sizing: border-box;
  background: rgba(15,23,42,0.6);
  color: #e2e8f0 !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

.formInput::placeholder {
  color: #64748b;
}

.formInput:focus {
  outline: none;
  border-color: rgba(129,140,248,0.75);
  box-shadow: 0 0 0 4px rgba(99,102,241,0.25);
}

.formInput:disabled {
  background-color: rgba(30,41,59,0.6);
  cursor: not-allowed;
  color: #94a3b8 !important;
}

.loginButton {
  background: linear-gradient(135deg, #2563eb 0%, #7c3aed 50%, #ec4899 100%);
  color: white;
  border: none;
  padding: 14px 24px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 6px;
  box-shadow: 0 16px 38px rgba(122,76,219,0.45);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.loginButton:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 20px 45px rgba(122,76,219,0.6);
}

.loginButton:active:not(:disabled) {
  transform: translateY(0);
}

.loginButton:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.loginHighlights {
  display: grid;
  gap: 10px;
  margin: 22px 0 10px;
  padding: 0;
  list-style: none;
  color: #a5b4fc;
  font-size: 13px;
  letter-spacing: 0.05em;
}

.loginHighlights li {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(59,130,246,0.08);
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(96,165,250,0.15);
}

.highlightDot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, #38bdf8, #818cf8);
  box-shadow: 0 0 16px rgba(129,140,248,0.75);
}

.loginFooter {
  text-align: center;
  margin-top: 28px;
}

.footerText {
  color: #64748b;
  font-size: 12px;
  margin: 0;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .loginBox {
    padding: 32px 24px 28px;
    margin: 28px 16px;
  }
  
  .loginTitle {
    font-size: 24px;
  }

  .idBadge {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .badgeStatus {
    align-self: flex-end;
  }
}

@media (max-width: 480px) {
  .loginContainer {
    padding: 12px;
  }
  
  .loginBox {
    padding: 26px 18px;
  }
  
  .formInput {
    padding: 10px 12px;
    font-size: 15px;
  }
  
  .loginButton {
    padding: 12px 20px;
    font-size: 13px;
  }
}

/* 暗色模式（跟随系统） */
@media (prefers-color-scheme: dark) {
  .loginContainer {
    background: radial-gradient(circle at top, rgba(56,189,248,0.22) 0%, transparent 40%),
      radial-gradient(circle at bottom, rgba(56,189,248,0.18) 0%, transparent 55%),
      linear-gradient(120deg, #020617 0%, #0b1120 45%, #111827 100%);
  }
}

@keyframes gridShift {
  0% { transform: translate3d(0,0,0); }
  100% { transform: translate3d(-80px, -80px, 0); }
}

@keyframes auroraDrift {
  0% { transform: rotate(0deg); opacity: 0.78; }
  50% { transform: rotate(18deg); opacity: 0.93; }
  100% { transform: rotate(-12deg); opacity: 0.8; }
}

@keyframes pulseRing {
  0% { transform: scale(0.85); opacity: 0.35; }
  50% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(0.9); opacity: 0.35; }
}

@keyframes glareSweep {
  0% { transform: rotate(18deg) translateX(-120%); }
  100% { transform: rotate(18deg) translateX(120%); }
}

@keyframes statusPulse {
  0%, 100% { transform: scale(0.9); opacity: 0.6; }
  50% { transform: scale(1.15); opacity: 1; }
}